package edu.xmut.yuepai.sys.controller;

import edu.xmut.yuepai.common.result.R;
import edu.xmut.yuepai.model.vo.FortesVO;
import edu.xmut.yuepai.sys.service.SysForteService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/sys-forte")
@RestController
public class SysForteController {

    @Resource
    private SysForteService sysForteService;

    @GetMapping("/all")
    public R getAll() {
        List<FortesVO> fortesVOList = sysForteService.getAll();
        return R.ok(fortesVOList);
    }
}
